package com.sanjiahantang.youjiarole.module.cases.views;

import com.sanjiahantang.uilibrary.adapter.listview.QuickAdapter;
import com.sanjiahantang.youjiarole.R;
import com.sanjiahantang.youjiarole.base.BaseView;
import com.sanjiahantang.youjiarole.module.cases.beans.CaseBean;

/**
 * Created by zy on 2017/8/25.
 */

public interface CaseView extends BaseView {
    int TYPE_STYLE = 0;
    int TYPE_ROOM_TYPE = 1;
    int TYPE_PRICE = 2;
    int TYPE_ADDRESS = 3;

    int INTENT_TYPE_CASE = 7;

    String KEY_PARENT_ID = "parentId";
    String KEY_CASE_TITLE = "caseTitle";
    String KEY_DESIGNER_PHONE = "designPhone";
    String KEY_ROLE_PHONE = "rolePhone";
    String[] KEY_TYPES = new String[]{
            "style",
            "door",
            "budget",
            "address"
    };

    String[] KEY_IMAGE_IDS = new String[]{
            "houseTypePic",//户型图
            "masterBedroomPic",//主卧
            "secondaryBedroomPic",//次卧
            "childrenBedroomPic",//儿童房
            "schoolroomPic",//书房
            "kitchenPic",//厨房
            "mainBathroomPic",//主卫
            "secondaryBathroomPic",//次卫
            "storeroomPic",//储藏室
            "relaxBalconyPic",//休闲阳台
            "livingBalconyPic",//生活阳台
            "topViewPic",//顶视图
            "livingRoomPic",//客厅
            "diningRoomPic",//餐厅
            "livingDiningRoomPic",//客餐厅
    };

    String URL_IMG_DEFAULT = "indexPic";
    String URL_VIDEO = "indexVideo";

    String[] IMAGE_TITLES = new String[]{
            "户型图",
            "主卧",
            "次卧",
            "儿童房",
            "书房",
            "厨房",
            "主卫",
            "次卫",
            "储藏室",
            "休闲阳台",
            "生活阳台",
            "顶视图",
            "客厅",
            "餐厅",
            "客餐厅",
    };

    int[] IMAGE_RES_IDS = new int[]{
            R.drawable.i_room_type,
            R.drawable.i_main_room,
            R.drawable.i_sub_room,
            R.drawable.i_sub_room,
            R.drawable.i_sub_room,
            R.drawable.i_cook_room,
            R.drawable.i_wash_room,
            R.drawable.i_wash_room,
            R.drawable.i_sub_room,
            R.drawable.i_sub_room,
            R.drawable.i_sub_room,
            R.drawable.i_sub_room,
            R.drawable.i_sub_room,
            R.drawable.i_cook_room,
            R.drawable.i_cook_room,
    };


    interface OnListLoadListener{
        void initContainers(QuickAdapter selectorAdapter, QuickAdapter caseAdapter,QuickAdapter addressAdapter);
        void recoverDefault();

        void setTextSelected(String parentId, String dicName, String dicValue);
    }

    interface DetailCallBack{
        void loadData(CaseBean.Detail detail);
        void initAdapter(QuickAdapter adapter);
    }
}
